#!/usr/bin/node 

const url = require('url'),
      http = require('http'),
      qs = require('querystring'),
      log = console.log;

http.createServer((req, res) => {
  log(req.headers);
  log(req.headers.host);
  log(req.headers['user-agent']);
  res.end('ok');
}).listen(8080);
